package scanner;
import java.util.Scanner;
public class Demo01 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("please input: ");
        if(scan.hasNext()){
            String str1 = scan.next();
            System.out.println("输入的数据为： " + str1);
        }
        scan.close();
    }
}
